home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AOL File Library: 11,000 to 11,999
/
11000.zip
/
AOLDLs
/
Programmieren [Pascal - Sonstige]
/
Gerätetreiber anzeigen lassen
/
SHOWDRV.pas
< prev
Wrap
Pascal/Delphi Source File
|
2014-12-20
|
1KB
|
33 lines
procedure showdrv;
var segme,ofse,NULs,NULo:word;NULfound:boolean;i:byte;se,off,attrib:string;
BEGIN
segme:=0;
repeat
ofse:=0;
repeat
if mem[segme:ofse+10]=ord('N') then begin
if (mem[segme:ofse+11]=ord('U'))and(mem[segme:ofse+12]=ord('L'))and(mem[segme:ofse+13]=ord(' '))and(mem[segme:ofse+14]=ord(' '))and
(mem[segme:ofse+15]=ord(' ')) and(mem[segme:ofse+16]=ord(' '))and(mem[segme:ofse+17]=ord(' ')) then begin
nulfound:=true; nuls:=segme;nulo:=ofse;
end;
end;
inc(ofse);
until (NULfound) or(ofse>65510);
inc(segme);
until NULfound;
writeln('Addresse Name Attributbits Typ Strat. Int.');
textcolor(7);
write('00',hex(nuls),':',hex(nulo));
repeat
write(' ');
attrib:=' '+dual(mem[nuls:nulo+5])+dual(mem[nuls:nulo+4]);
if attrib[3]='0' then write(mem[nuls:nulo+10],' Geräte') else for i:=1 to 8 do begin write(chr(mem[nuls:nulo+i+9]));end;
write(attrib);
if attrib[3]='1' then write(' Zeichen')else write(' Block ');
writeln(' ',hex(mem[nuls:nulo+6]),hex(mem[nuls:nulo+7]),' ',hex(mem[nuls:nulo+8]),hex(mem[nuls:nulo+9]));
se:=hex(mem[nuls:(nulo+3)])+hex(mem[nuls:(nulo+2)]);
off:=hex(mem[nuls:(nulo+1)])+hex(mem[nuls:nulo]);
if not ((se='FFFF')and(off='FFFF')) then write(se,':',off);
nuls:=hexdec(se);nulo:=hexdec(off);
until(se='FFFF')and(off='FFFF');
end.